package com.leyou.trade.entity;


import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document("#{@collectionNameBuilder.build()}")
public class CartItem {

    @Id  //u32s10086
    @JsonIgnore
    private String id;

    private Long skuId;

    //数据查询封装返回时，忽略这个属性
    @JsonIgnore
    private Long userId;
    private String image;
    private Integer num;
    private Long price;
    private String spec;
    private String title;
}
